﻿using System;
using metroioc.Container;

namespace MetroIoc
{
    internal class TypeResolver
    {
        public IRegistration Registration { get; set; }
        public Func<LifetimeScope, object> ResolveInstance { get; set; }

        internal object Resolve(Type type, string key, LifetimeScope resolver)
        {
            return Registration.Resolve(type, key, ResolveInstance, resolver);
        }
    }
}
